package com.sk.bilibili.model.fragment.member;

import androidx.media.AudioAttributesCompat;

import com.sk.api.annotations.Autowired;
import com.sk.bilibili.bean.Favorites;
import com.sk.bilibili.callBack.RequestCallBack;
import com.sk.bilibili.mapper.FavoritesMapper;
import com.sk.bilibili.model.BaseModel;
import com.sk.bilibili.utils.RequestUtils;
import com.sk.bilibili.view.fragment.member.FavoritesFragment;

import java.util.List;

public class FavoritesModel extends BaseModel<FavoritesFragment> {

    @Autowired
    FavoritesMapper favoritesMapper;

    public void loadFavorites(Integer memberId) {//全部获取
        RequestUtils.process(favoritesMapper.getAll(memberId, 2233),
                favorites -> view.loadFavoritesSuccess(favorites));
    }

}